<template>
  <div>
    <h1>Home</h1>
    <router-link to="/home/music">
      <button>Music</button>
    </router-link>
    <router-link to="/home/news">
      <button>News</button>
    </router-link>
  <div>
    <router-view v-slot="{Component}">
      <keep-alive>
        <component :is="Component"></component>
      </keep-alive>
    </router-view>
  </div>
  </div>
</template>

<script lang="ts">
import {defineComponent} from "vue";
export default defineComponent({
    name:"Home",
})
</script>

<script lang="ts" setup>

</script>

<style scoped>

</style>